<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h3>number修饰符</h3>
        <input type="text" v-model.number="enter"> 
        <p>输入的内容：“{{ enter }}”</p>
        <p>输入的内容：“{{ typeof(enter) }}”</p>

        <h3>trim修饰符</h3>
        <input type="text" v-model.trim="enter"> 
        <p>输入的内容：“{{ enter }}”</p>

        <h3>lazy修饰符</h3>
        <input type="text" v-model.lazy="enter"> 
        <p>输入的内容：“{{ enter }}”</p>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: {
                msg: "Hello world",
                enter: ""
            }
        })
    </script>
</body>
</html>